<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<%@include file="/common/common.jspf" %>
<script type="text/javascript" src="${ctx}/js/equip/airco/equip_edit.js"></script>
<script type="text/javascript" src="${ctx}/js/jedate/jedate.js"></script>
<script type="text/javascript">
$(function(){
	jeDate({
		dateCell:"#checkTime",
		format:"YYYY-MM-DD hh:mm:ss",
		isinitVal:false,
		isTime:true, 
		isClear:false,
		minDate:"2014-09-19 00:00:00"
	})
})

</script>
<style type="text/css">
.col-sm-3 {
	width: 15%;
	float: left;
}

.col-sm-9 {
	width: 85%;
	float: left;
}
label[class^="btn btn-default"]{
	margin-top: -4px;
}
</style>
</head>
<body>
	<div class="l_err" style="width: 100%; margin-top: 2px;"></div>
	<form id="form" name="form" class="form-horizontal" method="post"
		action="${ctx}/equip/airco_editEntity.shtml">
		<input type="hidden" class="form-control checkacc" value="${equipAll.id}"
			name="aircoFormMap.id" id="id">
		<section class="panel panel-default">
			<div class="panel-body">
				 <div class="form-group">
					<label class="col-sm-3 control-label">设备台账：</label>
					<div class="col-sm-9">
						<input type="text" class="form-control checkabh"
							placeholder="请输入设备台账" name="aircoFormMap.equipmentFileId" id="workcenter_no" value="${equipAll.equipmentFileId}"/>
						</div>
				</div> 
				<div class="line line-dashed line-lg pull-in"></div>
			<div class="form-group">
					<label class="col-sm-3 control-label">点检日期：</label>
					<div class="col-sm-9">
						<input type="text" class="form-control" placeholder="请输入点检日期"
							id="checkTime" name="aircoFormMap.checkTime" value="${equipfile.checkTime }">
					</div>
				</div>		
				<div class="line line-dashed line-lg pull-in"></div>
			
			<div class="form-group">
					<label class="col-sm-3 control-label">状态：</label>
					<div class="col-sm-9">
						<select class="form-control" name="aircoFormMap.status">
							<option value="1" <c:if test="${equipAll.status eq 1}"> SELECTED</c:if>>正常</option>
							<option value="2" <c:if test="${equipAll.status eq 2}"> SELECTED</c:if>>删除</option>						
						</select>
			</div>
			</div>
			<!-- 开始处理不合格项目 -->
			<div class="line line-dashed line-lg pull-in"></div>
			<div class="panel panel-default">
				<div class="panel-body">
					<table class="table table-bordered">
						<thead>
							<tr>
								<th style="text-align: center;width:176px;">序号</th>
								<th style="text-align: center;width:135px;">点检内容</th>
								<th style="text-align: center;width:135px;">点检判定</th>
								<th style="text-align: center;width:136px;">不合格处理</th>
								<th style="text-align: center;width:136px;">不合格处理时间</th>
								<th style="text-align: center;width:136px;">维修员</th>
								<th style="text-align: center;width:136px;">维修结果</th>
								<th style="text-align: center;width:136px;">备注</th>
							</tr>
						</thead>
						<tbody id="tbl">
							<c:forEach var="h" items="${equipHandle}">
									<tr>
										<td>
											<div class="input-group">
												<input type="text" class="form-control" readonly="readonly" name="handleForm.id"
													 value="${h.id}">
											</div>
										</td>
										<td>
											<div class="input-group">
												<input type="text" class="form-control"  readonly="readonly"
													 value="${h.contentName}">
											</div>
										</td>
									<td>
										<div class="input-group">
											<select class="form-control" name="handleForm.checkResult">
												<option value="0" <c:if test="${h.checkResult eq 0}"> SELECTED</c:if>>合格</option>
												<option value="1" <c:if test="${h.checkResult eq 1}"> SELECTED</c:if>>不合格</option>
											</select>
										</div>
									</td>
									<td>
										<div class="input-group">
											<input type="text" class="form-control"
												name="handleForm.handle" value="${h.handle}">
										</div>
									</td>
									<td>
										<div class="input-group">
											<input type="datetime-local" class="form-control" id="handleTime"
												name="handleForm.handleTime" value="${h.handleTime }">
										</div>
									</td>
									<td>
										<div class="input-group">
											<input type="text" class="form-control"
												name="handleForm.repairPeopleId" value="${h.repairPeopleId}">
										</div>
									</td>
									<td>
										<div class="input-group">
											<input type="text" class="form-control"
												name="handleForm.repairResult" value="${h.repairResult}">
										</div>
									</td>
									<td>
										<div class="input-group">
											<input type="text" class="form-control"
												name="handleForm.remark" value="${h.remark}">
										</div>
									</td>
								</tr>
							</c:forEach>
						</tbody>
					</table>
				</div>
			</div>
			</div>
			<footer class="panel-footer text-right bg-light lter">
			<button type="submit" class="btn btn-success btn-s-xs">提交</button>
		</footer> 
	</section>
	</form>
</body>
</html>